<include file="Public:header"/>

<div class="data_list">
	<table>
		<tr>
			<th width="30">ID</th>
			<th>名称</th>
			<th width="50">排序</th>
			<th width="30">热门</th>
			<th width="30">开通</th>
			<th>操作</th>
		</tr>
		<volist name="list" id="rs">
		<tr class="data-{$rs['id']}">
			<td><input type="hidden" name="id[{$rs['id']}]" value="{$rs['id']}">{$rs['id']}</td>
			<td><input class="td-txt" type="text" name="name[{$rs['id']}]" value="{$rs['name']}" style="width:200px;"></td>
			<td>
				<input class="w40 tac td-txt" type="text" name="order_id[{$rs['id']}]" value="<if condition="$rs['order_id'] neq '999999'">{$rs['order_id']}</if>">
			</td>
			<td>
				<input class="ajax_checkbox" url="{:URL('checkbox',array('field_name'=>'is_hot', 'id' => $rs['id'], 'name' => 'id'))}" type="checkbox" <eq name="rs.is_hot" value="1">checked</eq>/>
			</td>
			<td>
				<input class="ajax_checkbox" url="{:URL('checkbox',array('field_name'=>'is_open', 'id' => $rs['id'], 'name' => 'id'))}" type="checkbox" <eq name="rs.is_open" value="1">checked</eq>/>
			</td>
			<td>
				<a href="{:URL('index','parentid='.$rs['id'].'&type='.$rs['type'].'&upparentid='.$rs['parentid'])}" title="下级">
					<i class="if if-list"></i>
				</a>
				<a href="{:URL('delete', array('id' => $rs['id']))}" class="btn-confirm-opt delete-opt" title="{$rs['name']}" del-class="data-{$rs['id']}">
					<i class="if if-delete"></i>
				</a>
			</td>
		</tr>
		</volist>
	</table>
</div>

<notempty name="page"><div class="page">{$page}</div></notempty>
<div class="batch_opt">
	<span class="btn btn-edit batch-edit">批量修改</span>
	<span class="btn btn-add" url="{:URL('add', array('parentid'=>$parentid, 'type'=>$type))}">添加</span>
	<span class="btn btn-back" url="{:URL('index', array('parentid'=>$upparentid))}">返回上一级</span>
</div>

<include file="Public:footer"/>